<h1>Listing roles</h1>

<table>
  <tr>
    <th>Nome</th>
  </tr>

<% for role in @roles %>
  <tr>
    <td><%=h role.nome %></td>
    <td><%= link_to 'Show', role %></td>
    <td><%= link_to 'Edit', edit_role_path(role) %></td>
    <td><%= link_to 'Destroy', role, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New role', new_role_path %>
